<div id="content">
    <div id="deal-buy" class="box">
        <div class="box-top"></div>
        <div class="box-content">
            <div class="sect">
				<div class="paytype">
            	<?php $form=$this->beginWidget('CActiveForm', array(
					'id'=>'pay-form',
					'enableAjaxValidation'=>false
				)); ?>
                <div class="head"><h2>
				<?php echo "应付总额：<strong class=\"total-money\">".$model['order']->origin."</strong>元"; ?><br/>
				<?php // echo $form->labelEx($model['order'],'service'); ?>
				<?php echo $form->hiddenField($model['order'],'service');?>
				<?php echo $form->error($model['order'],'service'); ?></h2>
                </div>
                <div class="sect">
  					<div style="text-align:left;">
						<?php
							if ($model['order']->money==0 ) {
								echo CHtml::submitButton('使用账户余额支付',array('id'=>"submit",'class'=>"formbutton gotopay"));
							}else{
								echo  '<img src="/tuangou/css/zuitu/i/alipay.png" /><br/>';
								echo CHtml::submitButton('前往支付宝支付',array('id'=>"submit",'class'=>"formbutton gotopay"));echo" <br/>";
								echo CHtml::link('» 返回选择其他支付方式',array('order/view','id'=>$model['order']->id));

								  }
						?>

					</div>

                </div>
                <?php $this->endWidget(); ?>
                </div>
			</div>
		</div>
		<div class="box-bottom"></div>
	</div>
</div>


